<{include 'layout/activity_header.html'}>
<section class="content-header">
    <h1>
        <{$activity['name']}>
        <small>审核</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="http://wams.veryeast.cn/activity/meadin_activity/admin/index.php"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active"><{$activity['name']}></li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="nav-tabs-custom">
                <ul class="nav nav-tabs">
                    <li class="<{if $status==0}>active<{/if}>"><a href="http://wams.veryeast.cn/activity/meadin_activity/admin/index.php?a=activityAudit&aid=<{$aid}>&status=0" >未审核</a></li>
                    <li class="<{if $status==1}>active<{/if}>"><a href="http://wams.veryeast.cn/activity/meadin_activity/admin/index.php?a=activityAudit&aid=<{$aid}>&status=1" >已审核</a></li>
                    <li class="<{if $status==2}>active<{/if}>"><a href="http://wams.veryeast.cn/activity/meadin_activity/admin/index.php?a=activityAudit&aid=<{$aid}>&status=2" >未通过</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="activity">
                        <div class="box">
                            <div class="box-header">
                                <h3 class="box-title"></h3>

                                <div class="box-tools">
                                    <div class="input-group input-group-sm" style="width: 150px;">
                                        <input type="text" id="search" name="table_search" class="form-control pull-right" placeholder="请输入编号或者姓名" value="<{$search}>">

                                        <div class="input-group-btn">
                                            <button type="submit" id="submit" class="btn btn-default" url ="<{$url}>"><i class="fa fa-search"></i></button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /.box-header -->
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-hover  text-center">
                                    <tbody>
                                    <tr>
                                        <th width="60px">编号</th>
                                        <th>姓名</th>
                                        <th>电话</th>
                                        <th>宣言</th>
                                        <th>封面</th>
                                        <th>照片</th>
                                        <{if $status==1}><th>总票数（真实票数+票数基数）</th><{/if}>
                                        <{if $status==2}><th>未通过理由</th><{/if}>
                                        <{if $status==0 || $status==1}><th>操作</th><{/if}>
                                    </tr>
                                    <{foreach $users as $user}>
                                    <tr>
                                        <th><{$user['number']}></th>
                                        <th><{$user['name']}></th>
                                        <th><{$user['tel']}></th>
                                        <th><{$user['declaration']}></th>
                                        <th>
                                            <img src="http://wams.veryeast.cn/activity/meadin_activity/index<{$user['cover']}>" alt="" class="img-lg viewBigger">
                                        </th>
                                        <th>
                                            <{foreach explode(',',$user['picture']) as $picture}>
                                            <img src="http://wams.veryeast.cn/activity/meadin_activity/index<{$picture}>" alt="" class="img-lg viewBigger">
                                            <{/foreach}>
                                        </th>
                                        <{if $status == 1}><th><{count($user->vote)+$user['vote_base']}>（<{count($user->vote)}>+<{$user['vote_base']}>）</th><{/if}>
                                        <{if $status == 2}><th><{$user['reason']}></th><{/if}>
                                        <th>
                                            <{if $status == 0}>
                                            <button class="btn btn-primary pass" data="<{$user['id']}>">通过</button>
                                            <button class="btn btn-primary refuse" data="<{$user['id']}>">不通过</button>
                                            <{elseif $status == 1}>
                                            <button class="btn btn-primary changeVoteBase" data="<{$user['id']}>">修改投票基数</button>
                                            <{/if}>
                                        </th>
                                    </tr>
                                    <{/foreach}>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.box-body -->
                        </div>
                    </div>
                </div>
                <!-- /.tab-content -->
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <{$pagination}>
        </div>
    </div>
</section>
</div>
</div>

<!-- JavaScripts -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="plugin/layer/layer.js"></script>
<script src="js/common.js"></script>
<script src="plugin/adminLTE/js/app.min.js"></script>
<script src="plugin/datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script src="plugin/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script src="js/pageAudit.js"></script>
</body>
</html>
